package com.btkjgc.models;

// default package

 
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Coupon entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "coupon_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class Coupon implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Integer amount;
	private Integer conditionNum;
	private String cartypes;
	private String cityids;
	private String provinceids;
	private String comment;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	private Date begintime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	private Date endtime;
	private Integer del;
	private Date createdate;
	private Date operdate;
	private Integer operid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	private Date usebegindate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	private Date useenddate;
	private Integer status;
	private Integer point;

	// Property accessors
	@Id
	@Column(name = "id", unique = true)
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

 

	public Integer getConditionNum() {
		return conditionNum;
	}

	public void setConditionNum(Integer conditionNum) {
		this.conditionNum = conditionNum;
	}

	public String getCartypes() {
		return cartypes;
	}

	public void setCartypes(String cartypes) {
		this.cartypes = cartypes;
	}

	public String getCityids() {
		return cityids;
	}

	public void setCityids(String cityids) {
		this.cityids = cityids;
	}

	public String getProvinceids() {
		return provinceids;
	}

	public void setProvinceids(String provinceids) {
		this.provinceids = provinceids;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getBegintime() {
		return begintime;
	}

	public void setBegintime(Date begintime) {
		this.begintime = begintime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getOperdate() {
		return operdate;
	}

	public void setOperdate(Date operdate) {
		this.operdate = operdate;
	}

	public Integer getOperid() {
		return operid;
	}

	public void setOperid(Integer operid) {
		this.operid = operid;
	}

	public Date getUsebegindate() {
		return usebegindate;
	}

	public void setUsebegindate(Date usebegindate) {
		this.usebegindate = usebegindate;
	}

	public Date getUseenddate() {
		return useenddate;
	}

	public void setUseenddate(Date useenddate) {
		this.useenddate = useenddate;
	}

 
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
 

	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

}